let shell = require('shelljs')
module.exports = function () {
    return new Promise((resolve, reject) => {
        shell.cd('/home/lhk/opc')
        shell.exec('git pull')
        shell.exec('docker build -t opc ./')
        shell.exec('docker stop opc')
        shell.exec('docker rm opc')
        shell.exec('docker run --name opc -tid -p 3200:3200 opc')
        resolve()
    })
}
